package javatunes;

import player.*;

public class javatunesplayerlistener implements PlayerListener {
	private javatunes2 jt2;
	
	public javatunesplayerlistener(javatunes2 jt2) {
		this.jt2=jt2;
	}
	
	public void actualFPS(float arg0) {
	}

	public void changedState(int state) {
	}

	public void fpsChanged(float arg0) {
	}

	public void handleAnchor(String arg0) {
	}

	public void muteChanged(boolean arg0) {
	}

	public void playRequestWhenClosed() {
	}

	public void playerSize(int arg0, int arg1) {
	}

	public void playerTime(long currenttime) {
		//System.out.println("dur: "+jt2.pc.getDuration());
		//System.out.println("cur: "+currenttime);
		
		if (jt2.ibmPlayer.getState()!=PlayerControl.STOPPED && currenttime>0 && currenttime>=jt2.ibmPlayer.getDuration()) jt2.nexttrack();
		// display?
	}

	public void preferSize(int arg0, int arg1) {
	}

	public void scalingChanged(boolean arg0) {
	}

	public void serverNTPTimeOrigin(long arg0) {
	}

	public void speedChanged(double arg0) {
	}

	public void speedScalingChanged(boolean arg0) {
	}

	public void urlChanged(String arg0) {
	}

	public void usingMetrics(boolean arg0) {
	}

	public void volumeChanged(double arg0) {
	}

}
